package com.swm.util;

import java.io.File;
import java.util.ArrayList;

/**
 * @author 师文明
 * @data 2025/4/22 上午8:57
 **/
public class FileUtils {
        public static void main(String[] args) {
            File folder = new File("C:\\Users\\Administrator\\Desktop\\桌面\\票\\历史数据");
            listFiles(folder);
        }

        public static ArrayList<String> listFiles(File folder) {
            ArrayList<String> strings = new ArrayList<String>();
            File[] files = folder.listFiles();
            for (File file : files) {
                strings.add(file.getAbsolutePath());
            }
            return strings;
        }
}
